package com.demo.spring.memory;

import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
	wiringMode = AiServiceWiringMode.EXPLICIT, // 手动装配
	chatModel = "openAiChatModel", // 指定模型beanName
	streamingChatModel = "openAiStreamingChatModel",
	chatMemory = "chatMemory"
)
public interface ConsultantService {
	
	// 用于聊天的方法
	@SystemMessage("你是一个聊天助手，提供有情绪价值的聊天")
	public Flux<String> chat(String message);

}
